package com.example.service.impl;

import com.example.dao.CommentDao;
import com.example.entity.Comment;
import com.example.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private  CommentDao commentDao;




    @Override
    public int addComment(Comment comment) {
        return commentDao.insertComment(comment);
    }
}